cmake_minimum_required(VERSION 3.0.2)
project(simulation_pkg)

# C++17
set(CMAKE_CXX_STANDARD 17)



find_package(catkin REQUIRED COMPONENTS
  gazebo_plugins
  gazebo_ros
  roscpp
  rospy
  pcl_ros
  tf2_ros
  geometry_msgs
  sensor_msgs
)

# find_package(Gazebo REQUIRED)

# 加入 PCL 库
find_package(PCL 1.8 REQUIRED)


catkin_package(
    INCLUDE_DIRS include
    LIBRARIES simulation_pkg
    CATKIN_DEPENDS roscpp sensor_msgs tf2_ros pcl_ros gazebo_plugins gazebo_ros
#  DEPENDS system_lib
)



include_directories(
# include
  ${catkin_INCLUDE_DIRS}
)



add_executable(laserscans2pc src/laserscans2pc.cpp)
target_include_directories(laserscans2pc PUBLIC ${catkin_INCLUDE_DIRS} ${PCL_INCLUDE_DIRS})
target_link_libraries(laserscans2pc ${catkin_LIBRARIES} ${PCL_LIBRARIES})


catkin_install_python(PROGRAMS
  src/my_controller.py
  DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
